package com.elinkway.infinitemovies.bean;

import com.lvideo.http.bean.LVideoBaseBean;

import java.util.ArrayList;

public class SubChannelType implements LVideoBaseBean {
	private static final long serialVersionUID = 1L;
	private ArrayList<ArrayList<SiftKVP>> channelFilterList;

	public SubChannelType() {
		super();
		channelFilterList = new ArrayList<ArrayList<SiftKVP>>();
	}

	/**
	 * 获取子筛选列表
	 * 
	 * @param index
	 * @return
	 */
	public ArrayList<SiftKVP> getChannelSubList(int index) {
		if (channelFilterList != null && channelFilterList.size() > index) {
			return channelFilterList.get(index);
		} else {
			return null;
		}
	}

	/**
	 * 添加子筛选列表
	 * 
	 * @param subFilterList
	 */
	public void addChannelSubList(ArrayList<SiftKVP> subFilterList) {
		if (channelFilterList == null) {
			channelFilterList = new ArrayList<ArrayList<SiftKVP>>();
		}
		channelFilterList.add(subFilterList);
	}

	/**
	 * 获取筛选列表数目
	 * 
	 * @return
	 */
	public int getCount() {
		return channelFilterList == null ? 0 : channelFilterList.size();
	}

	/**
	 * @return the channelFilterList
	 */
	public ArrayList<ArrayList<SiftKVP>> getChannelFilterList() {
		return channelFilterList;
	}

	/**
	 * @param channelFilterList
	 *            the channelFilterList to set
	 */
	public void setChannelFilterList(
			ArrayList<ArrayList<SiftKVP>> channelFilterList) {
		this.channelFilterList = channelFilterList;
	}
}
